<?php
$sql = "select * from dongho where 1";
$madh = isset($_REQUEST["madh"])?$_REQUEST["madh"]:"";
if ($madh !="")
{
	$sql .=" and madh='$madh' ";	
}
$result = mysql_query($sql);
while($r = mysql_fetch_array($result))
{
	echo "<div class=chitiet>";
	$t = $r["tendh"]; $g= $r["gia"]; $mo=$r["mota"]; $h="Images_product/". $r["hinh"];
	echo "<font size='+3'><b class='chitiet1'>$t</b></font><br>";
	echo "<img src='$h' height=600 width=490><br>";
	echo"<b class='chitiet2'>CHI TIẾT SẢN PHẨM</b><br>";
	echo "<font size='+2' color='#000000'>$mo</b><br>";
	echo "</div>";
}
?>